<?php
session_start();
if ($_SESSION["access"] != "granted")
{
   session_destroy();
   header("Location: ./index.php");
}

require_once('f.php');

$liberi = disk_free_space ( "./" );
$totali = disk_total_space ( "./" );
$diff = $totali - $liberi;
$percento = 100 * $diff / $totali;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta content="yes" name="apple-mobile-web-app-capable" />
<meta content="index,follow" name="robots" />
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type" />
<link href="pics/homescreen.gif" rel="apple-touch-icon" />
<meta content="minimum-scale=1.0, width=device-width, maximum-scale=0.6667, user-scalable=no" name="viewport" />
<link href="css/style.css" rel="stylesheet" media="screen" type="text/css" />
<script src="javascript/functions.js" type="text/javascript"></script>
<title><?php echo getTitle()?></title>
</head>

<body>

<div id="topbar">
	<div id="title">
		<?php echo getTitle()?></div>
	<div id="leftbutton"> 
		<a href="index.php" class="noeffect">Logout</a> </div> 
<!--	<div id="rightnav">
		<a href="integration.html">Integration</a></div>-->
</div>
<div id="tributton">
	<div class="links">
		<a href="main.php">Main</a><a id="pressed" href="status.php">Status</a><a href="settings.php">Settings</a></div>
</div>
<div id="content">	
   <?php if ($msg != ''):?>
	<ul class="pageitem">
		<li class="textbox"><span class="header">Yep!</span><?php echo $msg?></li>
	</ul>
   <?php endif;?>
   <ul class="pageitem">
		<li class="textbox"><span class="header">System Space</span>
      In Use: <b><?php echo SpaceFormat($diff).' ('.ceil($percento).' %)'?></b><br />
      Free: <b><?php echo SpaceFormat($liberi)?></b><br />
      Total: <b><?php echo SpaceFormat($totali)?></b><br />
      </li>
	</ul>
	<form method="post" action="settings.php">			
		</fieldset></form>
</div>
<div id="footer">
	<a href="http://iwebkit.net">Powered by iWebKit</a></div>

</body>

</html>
